import Vue from 'vue';
import { sync } from 'vuex-router-sync'

import ElementUI from 'element-ui'
import Common from '~/components/common'
import router from '~/routes'
import store from '~/vuex'
import App from '~/components/App.vue'

import './assets/css/reset.css'
import './assets/css/backend.css'
import './assets/css/color.css'
import '../element-variables.scss'
import echarts from 'echarts'
// import VueQrcodeReader from 'vue-qrcode-reader'

Vue.use(ElementUI);
Vue.use(Common);
// Vue.use(VueQrcodeReader);

//warn 和notice 不显示
Vue.config.silent = true
Vue.prototype.$echarts = echarts
sync(store, router)

new Vue ({
	el: '#app',
	router,
	store,
	render: h => h(App)
});
